package com.xuetang9.fujian;

import com.xuetang9.fujian.utils.JdbcUtil;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args ) throws SQLException {
        Statement statement = JdbcUtil.GetConnection().createStatement();
        ResultSet resultSet = statement.executeQuery("select * from students;");
        while (resultSet.next()){
            System.out.println(resultSet.getObject(1)+"\t"+resultSet.getObject(2));
        }
    }
}
